// Place your Spring DSL code here
//import org.springframework.security.userdetails.hierarchicalroles.RoleHierarchyImpl
//import org.springframework.security.vote.RoleHierarchyVoter

beans = {
    localeResolver(org.springframework.web.servlet.i18n.SessionLocaleResolver) {
        defaultLocale = new Locale("pt","MZ")
        java.util.Locale.setDefault(defaultLocale)
    }
    authenticateService(mz.matafe.bolao.AuthenticateService)
//    roleHierarchy(RoleHierarchyImpl) {
//        hierarchy = '''
//         ROLE_ADMIN > ROLE_SUPERVISOR
//         ROLE_SUPERVISOR > ROLE_USER
//      '''
//    }
//    roleVoter(RoleHierarchyVoter, ref('roleHierarchy'))
}